package com.elli0tt.pojo;

/**
 * @author elli0tt
 * @version 1.0
 * @className MappedStatement.java
 * @description 映射 SQL 语句信息
 * @createTime 2020-08-28 21:46:03
 */
public class MappedStatement {
    /** sql 查询接口 id 标识 */
    private String id;
    /** sql 返回类型 */
    private Class<?> resultType;
    /** sql 入参类型 */
    private Class<?> parameterType;
    /** sql 语句（未处理） */
    private String sql;

    public MappedStatement() {
    }

    public MappedStatement(String id, Class<?> resultType, Class<?> parameterType, String sql) {
        this.id = id;
        this.resultType = resultType;
        this.parameterType = parameterType;
        this.sql = sql;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Class<?> getResultType() {
        return resultType;
    }

    public void setResultType(Class<?> resultType) {
        this.resultType = resultType;
    }

    public Class<?> getParameterType() {
        return parameterType;
    }

    public void setParameterType(Class<?> parameterType) {
        this.parameterType = parameterType;
    }

    public String getSql() {
        return sql;
    }

    public void setSql(String sql) {
        this.sql = sql;
    }
}
